//
//  ViewController.m
//  UI01__homework
//
//  Created by dllo on 16/6/4.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIView *view1 = [[UIView alloc] initWithFrame:CGRectMake(50, 50, 100, 100)];
    [self.view addSubview:view1];
    view1.backgroundColor = [UIColor redColor];
    view1.alpha = 0.6;
    [view1 release];
    
    
    UIView *view2 = [[UIView alloc]initWithFrame:CGRectMake(150, 300, 100, 100)];
    [self.view addSubview:view2];
    view2.backgroundColor = [UIColor yellowColor];
    [view2 release];
    
    UIView *view3 = [[UIView alloc]initWithFrame:CGRectMake(200, 100, 100, 100)];
    [self.view addSubview:view3];
    view3.backgroundColor = [UIColor greenColor];
    [view3 release];
    
    
    UIView *view4 = [[UIView alloc]initWithFrame:CGRectMake(100, 200, 100, 100)];
    [self.view addSubview:view4];
    view4.backgroundColor = [UIColor blueColor];
    [view4 release];
    
    UIView *view5 = [[UIView alloc]initWithFrame:CGRectMake(0, 300, 100, 100)];
    [self.view addSubview:view5];
    view5.backgroundColor = [UIColor grayColor];
    [view5 release];

    
    
    
    
    
    
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
